home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Tools - Objects / C++ / MPW C++ 3.1b1 / Examples / CPlusExamples / TApplication.r < prev    next >
Text File  |  1989-09-29  |  2KB  |  84 lines

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    MultiFinder-Aware Simple Application Framework
  6. #
  7. #    CPlusAppLib
  8. #
  9. #    TApplication.r    -    Rez source
  10. #
  11. #    Copyright © 1989 Apple Computer, Inc.
  12. #    All rights reserved.
  13. #
  14. #    Versions:    
  15. #            1.10                     07/89
  16. #            1.00                     04/89
  17. #
  18. #    Components:
  19. #            TApplicationCommon.h    July 9, 1989
  20. #            TApplication.h            July 9, 1989
  21. #            TDocument.h                July 9, 1989
  22. #            TApplication.cp            July 9, 1989
  23. #            TDocument.cp            July 9, 1989
  24. #            TApplication.r            July 9, 1989
  25. #
  26. #    CPlusAppLib is a rudimentary application framework
  27. #    for C++. The applications CPlusShapesApp and CPlusTESample
  28. #    are built using CPlusAppLib.
  29. #
  30. ------------------------------------------------------------------------------*/
  31.  
  32. #include "SysTypes.r"
  33. #include "Types.r"
  34.  
  35. #include "TApplicationCommon.h"
  36.  
  37. /* this ALRT and DITL are used as an error screen */
  38. resource 'ALRT' (rUserAlert, purgeable) {
  39.     {40, 20, 150, 260},
  40.     rUserAlert,
  41.     { /* array: 4 elements */
  42.         /* [1] */
  43.         OK, visible, silent,
  44.         /* [2] */
  45.         OK, visible, silent,
  46.         /* [3] */
  47.         OK, visible, silent,
  48.         /* [4] */
  49.         OK, visible, silent
  50.     }
  51. };
  52.  
  53. resource 'DITL' (rUserAlert, purgeable) {
  54.     { /* array DITLarray: 3 elements */
  55.         /* [1] */
  56.         {80, 150, 100, 230},
  57.         Button {
  58.             enabled,
  59.             "OK"
  60.         },
  61.         /* [2] */
  62.         {10, 60, 60, 230},
  63.         StaticText {
  64.             disabled,
  65.             "Error. ^0."
  66.         },
  67.         /* [3] */
  68.         {8, 8, 40, 40},
  69.         Icon {
  70.             disabled,
  71.             2
  72.         }
  73.     }
  74. };
  75.  
  76.  
  77. resource 'STR#' (kErrStrings, purgeable) {
  78.     {
  79.     "You must run on 512Ke or later";
  80.     "Application Memory Size is too small"
  81.     }
  82. };
  83.  
  84.